package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.query.PageResult;
import cn.wolfcode.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IEmployeeService {
    void insert(Employee employee, Long[] ids);
    void delete(Long id);
    void update(Employee employee, Long[] ids);
    Employee selectOne(Long id);
    List<Employee> selectAll();

    PageInfo<Employee> query(QueryObject queryObject);

    Employee login(String username, String password);

    void judageUpdate(String oldPassword, String newPassword);

    void updatePwd(String newPassword);

    void batchDelete(Long[] ids);

    Employee selectName(String name);

    void updateStatus(Long id);
}
